import Vue from 'vue'
import Router from 'vue-router'
import Error from './views/Error'
import Login from './views/Login'
import Home from './views/Home.vue'

Vue.use(Router)

export default new Router({
  mode: 'hash', // history hash
  base: process.env.BASE_URL,
  routes: [{
    path: '/',
    name: 'login',
    component: Login
  },
  {
    path: '/Home',
    name: 'home',
    component: Home
  },
  {
    path: '*',
    name: 'error',
    component: Error
  }

  ]
})
